package cn.edu.sdust.dao;

import cn.edu.sdust.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentDao {

    //增加一个学生
    int addStudent(Student student);

    /**
     * 批量删除
     *
     * @param ids
     * @return
     */
    int deleteStudentById(@Param(value = "ids") Integer[] ids);

    //通过学号查询学生
    Student queryStudentById(int id);

    //查询所有学生
    List<Student> queryAllStudent(Student stu);

    //更改学生信息
    int updateStudent(Student student);

}
